package com.wan.pojo;

import org.springframework.stereotype.Component;

@Component
public class Menu {
    private Long id;
    private Long parentId;//父类id
    private Long _parentId;//父类id,用来匹配easyui的父类id
    private String name;//菜单名称
    private String url;//点击后的url
    private String icon;//菜单icon图标

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Long get_parentId() {
        this._parentId=parentId;
        return _parentId;
    }

    public void set_parentId(Long _parentId) {
        this._parentId = _parentId;
    }

    public Menu(Long id, Long parentId, String name, String url, String icon) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.url = url;
        this.icon = icon;
    }

    public Menu() {
    }

}
